package com.capgemini.fs.app.ekms.service;

import java.util.List;

import com.capgemini.fs.app.ekms.model.Forum;
import com.capgemini.fs.app.ekms.model.Topic;

public interface ForumService extends Service {
	public void createForum(Forum forum);

	public Forum getForumByName(String name);

	public List<Forum> getAllForums();

	void createForum(List<Forum> forums);

	void updateForum(Forum f);

	void updateForum(List<Forum> forums);

	boolean isExist(String name);

	Forum getForumById(Integer id);

	void inactiveForum(Integer forumId, String lastModifier);

	void inactiveForumTopic(Integer forumId, String lastModifier);

	void activeForum(Integer forumId, String lastModifier);

	void activeForumTopic(Integer forumId, String lastModifier);

	public List<Forum> queryForum(String forumName, Integer status);
	
	public List<Topic> queryForumTopics(int forumId);
	
	public Integer addModerator(Integer userId,Integer forumId);
	
	public Integer getNewTopicCountsToday(Forum forum);
	
	public Integer getPostCounts(Forum forum);
	
	public Topic getLastTopic(Forum forum);
	
}
